<?php

$icons = require 'icon.php';

//搜索处理
if(!empty($_GET['s'])){
	$search =$_GET['s'];
	$data = $db;
	$db=array();

	foreach($data as $d)
	{
		if(preg_match('@'.$search.'@i',$d['title']))
		{
			$db[]=$d;
		}
	}
}

require 'view/index.html';

?>